package com.study.s03.stackandqueue;

public class TestMyQueue {
	public static void main(String[] args) {
		
//		MyQueue myQueue = new MyQueue(3);
		MyCycleQueue myQueue = new MyCycleQueue(3);
		myQueue.insert(88);
		myQueue.insert(58);
		myQueue.insert(28);
		myQueue.remove();
		myQueue.insert(66);
		
//		System.out.println(myQueue.peek());
//		System.out.println(myQueue.peek());
		
		while(!myQueue.isEmpty()) {
			System.out.println(myQueue.remove());
		}
		
		System.out.println("是否为空：" + myQueue.isEmpty());
	}
}
